{include "Public/header"}
<div class="container-fluid">
  <div class="row-fluid">
    <div class="span12">
      <div class="widget-box">
        <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
          <h5>{$title}</h5>
        </div>
        <div class="widget-content nopadding">
          <form action="" method="post" class="form-horizontal">
          {if isset($info)}
          <input type="hidden" name="id" value="{$info['id']}" />
          {/if}
            <div class="control-group">
              <label class="control-label">Name</label>
              <div class="controls">
                <input type="text" name="name" class="span11" maxlength="255" value="{$info['name']|''}"  placeholder="please input the name" />
              </div>
            </div>
            <div class="control-group">
              <label class="control-label">Remark</label>
              <div class="controls">
                <textarea class="span11" name="remark" maxlength="255" placeholder="remark">{$info['remark']}</textarea>
              </div>
            </div>
            <div class="form-actions">
              <input type="submit" class="btn btn-success" value="save">
            </div>
          </form>
        </div>
      </div>
     </div>
</div></div>
{include "Public/footer"}
<script>
$(function(){
	$("form").validate({
		rules:{
			name:{
				required:true
			}
		},
		messages:{
			name:{
				required:"required"
			}
		}
	});
});
</script>